import { request } from "@/http/axios"
export function projectAll() {
  return request({
    url: '/projectType/all',
    method: "get"
  })
}


/** 获取登录验证码 和 邮箱验证码 */
export function getLoginCodeApi(data) {
  return request({
    url: "user/code",
    method: "post",
    data: {
      email: data
    }
  })
}
/** 登录并返回 Token */
//密码登录
export function loginApi(data) {
  return request({
    url: "user/login",
    method: "post",
    data
  })
}
// 邮箱登录
export function emailLoginApi(data) {
  return request({
    url: "user/codelogin",
    method: "post",
    data
  })
}

// 注册
export function registerApi(data) {
  return request({
    url: "user/register",
    method: "post",
    data
  })
}
// 忘记密码
export function resetPasswordApi(data) {
  return request({
    url: "user/setPassword",
    method: "post",
    data
  })
  }











